package com.nali.dal.statement.query;

import java.util.ArrayList;
import java.util.List;

public class TranerConfig {
	private List<ColumnUnitConfig> valueColumns;
	
	public TranerConfig(List<ColumnUnitConfig> valueColumns) {
		this.valueColumns = valueColumns;
	}
	
	public Traner getTraner() {
		List<ColumnUnit> unitList = new ArrayList<ColumnUnit>(valueColumns.size());
		for (ColumnUnitConfig cfg : valueColumns) {
			unitList.add(cfg.getColumnUnit());
		}
		return new Traner(unitList);
	}

}
